{% block sw_product_settings_form %}
<div class="sw-product-settings-form">
    {% block sw_product_settings_form_content %}
    <sw-container
        columns="1fr 1fr 1fr"
        gap="0px 30px"
    >
        {% block sw_product_settings_form_release_date_field %}
        <sw-inherit-wrapper
            v-model:value="product.releaseDate"
            class="sw-product-settings-form__release-date"
            :has-parent="!!parentProduct.id"
            :inherited-value="parentProduct.releaseDate"
            :label="$tc('sw-product.settingsForm.labelReleaseDate')"
        >
            <template #content="props">

                <mt-datepicker
                    date-type="datetime"
                    :disabled="props.isInherited || !allowEdit"
                    :error="productReleaseDateError"
                    :placeholder="$tc('sw-product.settingsForm.placeholderReleaseDate')"
                    :model-value="props.currentValue"
                    @update:model-value="props.updateCurrentValue"
                />

            </template>
        </sw-inherit-wrapper>
        {% endblock %}

        {% block sw_product_settings_form_ean_field %}
        <sw-inherit-wrapper
            v-model:value="product.ean"
            :has-parent="!!parentProduct.id"
            :inherited-value="parentProduct.ean"
        >
            <template #content="props">

                <mt-text-field
                    :is-inheritance-field="props.isInheritField"
                    :is-inherited="props.isInherited"
                    :error="productEanError"
                    :label="$tc('sw-product.settingsForm.labelEan')"
                    :placeholder="$tc('sw-product.settingsForm.placeholderEan')"
                    :disabled="props.isInherited || !allowEdit"
                    :model-value="props.currentValue"
                    @update:model-value="props.updateCurrentValue"
                    @inheritance-restore="props.restoreInheritance"
                    @inheritance-remove="props.removeInheritance"
                />

            </template>
        </sw-inherit-wrapper>
        {% endblock %}

        {% block sw_product_settings_form_manufacturer_number_field %}
        <sw-inherit-wrapper
            v-model:value="product.manufacturerNumber"
            :has-parent="!!parentProduct.id"
            :inherited-value="parentProduct.manufacturerNumber"
        >
            <template #content="props">

                <mt-text-field
                    :is-inheritance-field="props.isInheritField"
                    :is-inherited="props.isInherited"
                    :error="productManufacturerNumberError"
                    :label="$tc('sw-product.settingsForm.labelManufacturerNumber')"
                    :placeholder="$tc('sw-product.settingsForm.placeholderManufacturerNumber')"
                    :disabled="props.isInherited || !allowEdit"
                    :model-value="props.currentValue"
                    @update:model-value="props.updateCurrentValue"
                    @inheritance-restore="props.restoreInheritance"
                    @inheritance-remove="props.removeInheritance"
                />

            </template>
        </sw-inherit-wrapper>
        {% endblock %}
    </sw-container>
    {% endblock %}
</div>
{% endblock %}
